package com.gim;

import com.bbx.api.R.string;

public class client 
{
	
	 public native int  init(listener lstr);
	 public native int stop();
	 public native int  login(String srvip, int srvport, String cliver, int enc, String cid, String pwd, String token);
	 public native int disconnect(String cid);
	 
	//crypt
	 public static native void setTime(long t);
	 public static native String encrypt(String src);
	 public static native String decrypt(String src);
	 public static native String aesEncrypt(String src);
	 public static native String aesDecrypt(String src);
	 
	 public  native int request(String cid, String sn, int srvtype, String jstr);
	 public  native int keepAlive(String cid, String sn, int srvtype);
	 
	 
	 public native int logicServerTest(String cid, String sn, String data);
	 

	 public static native void loglevel(int l);
	 public static native void setLogpath(String s);
	 
	 static {
	        System.loadLibrary("clientsdk");
	    }
}